namespace Maple.Branch.IdentityServer.DefinitionProviders
{
    using Consts;
    using Localizations;
    using Volo.Abp.Localization;
    using Volo.Abp.Settings;

    public class IdentityServerSettingProvider : SettingDefinitionProvider
    {
        public override void Define(ISettingDefinitionContext context)
        {
            // Define your own settings here. Example:
            context.Add(new SettingDefinition(
                name: IdentityServerSettingNames.ModuleName,
                defaultValue: "IdentityServer",
                displayName: L("Setting:MySetting1")
                ));
        }

        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<IdentityServerLocalResource>(name);
        }
    }
}
